package API.Class.Math;
public class CheckProportion {
    public static String Start(double first, double second, double third, double fourth) {
        double qq1 = first * fourth;
        double qq2 = second * third;
        double er = first * second;
        double err = third * fourth;
        boolean b1 = er == err;//反比例
        boolean b2 = qq1 == qq2;//正比例
        boolean bv = (qq1 == qq2) && (er == err);//反比例\正比例
        if (bv)
            return ("结果：成正比例\\反比例！");
        else if (b2)
            return ("结果：成正比例！");
        else if (b1)
            return ("结果：成反比例！");
        else
            return ("结果：不成比例！");
    }
}
